<%@ page contentType="text/html;charset=gb2312" import="java.sql.*"%>
<jsp:useBean id="conn" class="dbBean.DBBean" scope="session"/>
<jsp:useBean id="conn2" class="dbBean.DBBean"/>
<%@ include file="checkadmin.jsp"%>
<%
	String delid="0";
	if(request.getParameter("delid")!=null)
		delid=request.getParameter("delid");
	String sql="delete from book where bookid="+delid;
	conn.executeUpdate(sql);
	conn.close();
	response.sendRedirect("list.jsp");	
%>